
import static org.junit.Assert.*;

import org.junit.Test;


public class CardTest {



        @Test
        public void testCompareTo() {
                Card o= new Card (2,14);
                Card l= new Card (2,14);
                Card a= new Card (2,2);
                Card b= new Card (2,5);
                
                assertEquals(a.compareTo(b),-1);
                assertEquals(l.compareTo(o), 0);
        }

        @Test
        public void testPrzypiszWartoscCard() {
                Card o = new Card();
                
                assertEquals (o.przypiszWartoscCard(14), "As");
        }

        @Test
        public void testPrzypiszKolorCard(){
                Card o = new Card ();
                assertEquals (o.przypiszKolorCard(2), "Wino");
        }
        

}